import { createApp } from 'vue';
import App from './App.vue';
import { nutUiComponents } from './plugins/nutUI';
import './plugins/vant';
import { i18n } from '/@/i18n';
import router from '/@/router';
import store from '/@/store';
import './assets/font/iconfont.css';
import { ConfigProvider } from 'vant';
import './assets/app.css';
import axios from 'axios'
// import 'amfe-flexible';
const app = createApp(App);
// app.prototype.$axios=axios
// import axios from 'axios'
// const app = createApp(App)
app.config.globalProperties.$http = axios
// 路由
app.use(router);
// 国际化
app.use(i18n);

// 状态管理
app.use(store);

// nutUi按需加载
nutUiComponents.forEach((item) => {
  app.use(item);
});

app.mount('#app');
